export default {
  namespaced: true,
  state:{
    eventTypes:[
      {
        value:'0',
        label:'启动成功后',
      },
      {
        value:'1',
        label:'流程结束前',
      },
      {
        value:'2',
        label:'流程结束后',
      }
    ],
    taskEventTypes:[
      {
        value:'0',
        label:'提交之前',
      },
      {
        value:'1',
        label:'提交成功时',
      },
      {
        value:'2',
        label:'提交失败时',
      },
      {
        value:'3',
        label:'驳回之前',
      },
      {
        value:'4',
        label:'驳回成功时',
      },
      {
        value:'5',
        label:'拒绝之前',
      },
      {
        value:'6',
        label:'拒绝之后',
      }
      ,
      {
        value:'7',
        label:'手动结束之前',
      }
      ,
      {
        value:'8',
        label:'手动结束之后',
      }
    ],
    eventWays:[
      {
        value:'0',
        label:'不启用',
      },
      {
        value:'1',
        label:'执行SQL',
      },
      {
        value:'2',
        label:'执行WebAPI',
      }
    ]
  },
  getters:{
    //流程事件类型
    eventTypes:state=>{
      return state.eventTypes;
    },
    //节点事件类型
    taskEventTypes:state=>{
      return state.taskEventTypes;
    },
    //事件执行方式
    eventWays:state=>{
      return state.eventWays;
    }
  }
};
